home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <META NAME="GENERATOR" Content="Microsoft Developer Studio">
- <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE>ActiveCalendar Demo Page - The Buster Group</TITLE>
- </HEAD>
-
-
- <SCRIPT LANGUAGE="VBScript">
- <!--
- '*****************************************
- 'Set the default dates for the controls
- '*****************************************
- Sub window_onload()
- ActiveCalendar1.acDate = Date
- ActiveCalendar2.acDate = DateAdd("d", 7, Date)
- end sub
-
-
- '*****************************************
- 'validate and calculate the dates
- '*****************************************
- Sub GetDuration(StartDate, EndDate)
- If IsNull(StartDate) Or IsNull(EndDate) Or StartDate = "" Or EndDate = "" then
- txtDuration.Value = ""
- Else
- StartDate = CDate(ActiveCalendar1.acDate)
- EndDate = CDate(ActiveCalendar2.acDate)
- txtDuration.Value = DateDiff("d", StartDate, EndDate) & " days"
- end if
- end sub
-
- '*****************************************
- 'Change Events
- '*****************************************
- Sub ActiveCalendar1_Change(newdate)
- GetDuration newdate, ActiveCalendar2.acDate
- end sub
-
- Sub ActiveCalendar2_Change(newDate)
- GetDuration ActiveCalendar1.acDate, newdate
- end sub
-
- -->
- </SCRIPT>
-
- <BODY>
-
- <OBJECT
- CLASSID="CLSID:5220cb21-c88d-11cf-b347-00aa00a28331">
- <PARAM NAME="LPKPath" VALUE="tsgacal.LPK">
- </OBJECT>
-
- <FONT FACE="Tahoma" Size=3>
- <STRONG>ActiveCalendar 2.0 Demo Page<BR></STRONG>
- <FONT SIZE=2>
- <STRONG>⌐ 1997 - 1998 <a href="http://www.thebustergroup.com">The Buster Group</a>.<BR><BR></STRONG>
-
- <TABLE WIDTH=500 BORDER=0>
- <TR>
- <TD COLSPAN=2><FONT SIZE=2>
- Please select the start and end dates to view the duration in days.<BR><BR>
- </TD>
- </TR>
- <TR>
- <TD ALIGN=RIGHT>
- <FONT SIZE=2>Start Date:</FONT>
- </TD>
- <TD WIDTH=225>
- <OBJECT ID="ActiveCalendar1" WIDTH=120 HEIGHT=19
- CLASSID="CLSID:B6845ABC-880B-11D1-A249-00805F21D5F8"
- CODEBASE="TSGACAL.CAB#version=2,0,0,100">
- <PARAM NAME="CalendarFont" VALUE="Tahoma">
- <PARAM NAME="Font" VALUE="Tahoma">
- <PARAM NAME="FontSize" VALUE="8">
- <PARAM NAME="Height" VALUE="18">
- <PARAM NAME="DateFormat" VALUE="ddd mm/dd/yyyy">
- </OBJECT>
- </TD>
- </TR>
- <TR>
- <TD ALIGN=RIGHT>
- <FONT SIZE=2>End Date:</FONT>
- </TD>
- <TD WIDTH=225>
- <OBJECT ID="ActiveCalendar2" WIDTH=120 HEIGHT=19
- CLASSID="CLSID:B6845ABC-880B-11D1-A249-00805F21D5F8"
- CODEBASE="TSGACAL.CAB#version=2,0,0,100">
- <PARAM NAME="CalendarFont" VALUE="Tahoma">
- <PARAM NAME="Font" VALUE="Tahoma">
- <PARAM NAME="FontSize" VALUE="8">
- <PARAM NAME="Height" VALUE="18">
- <PARAM NAME="DateFormat" VALUE="ddd mm/dd/yyyy">
- </OBJECT>
- </TD>
- </TR>
- <TR>
- <TD ALIGN=RIGHT>
- <FONT SIZE=2>Duration:</FONT>
- </TD>
- <TD WIDTH=225>
- <BR>
- <OBJECT ID="txtDuration" WIDTH=120 HEIGHT=21
- CLASSID="CLSID:8BD21D10-EC42-11CE-9E0D-00AA006002F3">
- <PARAM NAME="VariousPropertyBits" VALUE="746604571">
- <PARAM NAME="Size" VALUE="3281;564">
- <PARAM NAME="FontName" VALUE="Tahoma">
- <PARAM NAME="FontHeight" VALUE="165">
- <PARAM NAME="FontCharSet" VALUE="0">
- <PARAM NAME="FontPitchAndFamily" VALUE="2">
- </OBJECT>
- </TD>
- </TR>
- </TABLE>
- </BODY>
- </HTML>